<?php
    require_once("../../shop/DBUtil.php");
    $sql = "select p_id from t_product order by p_id";
    $products = query(getConn(), $sql);
    header("Content-Type:application/json;charset=utf-8");
    // 输出json
    echo json_encode($products);
?>